# include <stdio.h>
# include <math.h>
# include <malloc.h>
# include <stdlib.h>
# define PI 3.14

float * h_Ip(float *pRaa1, int leng_1, float *pRaa2, int leng_2) //leng_1是1数组的长度，leng_2是2数组的长度
{	
	float *pRaa3;  //pRaa3用来指向卷积后的数据
	int n, m; 
	int leng_3; //leng_3是存放卷积完的长度
	float k=0; //k用来临时存放数据

	pRaa3 = (float *)malloc(sizeof(float)*(leng_1+leng_2-1));//动态分配内存，！没有销毁
	leng_3 = leng_1+leng_2-1;

	/* 通过离散卷积公式计算 */
	for(n=0; n<leng_3; n++)
	{
		for(m=0; m<leng_1; m++)
		{
			if((n-m)>=0 && (n-m)<leng_2)
			{
				k += pRaa1[m] * pRaa2[n-m];
			}
		}
		pRaa3[n] = k;
		k = 0; 
	}
	return pRaa3; //返回地址
}

void main()
{
	float * pRaa = NULL;
	FILE * fp;

	

	fclose(fp);
	free(pRaa);
}

